#!/usr/bin/python
import gnreq
import sys
def main():
	for i in range(1,100):
		op="r-%d-x"%i
		resp = gnreq.main(sys.argv[1],sys.argv[2],"occ",[op])
		if resp.split(" ")[-1] == "0":
			continue
		else:
			print "test failed"
			return
	for i in range(1,100):
		resp = gnreq.main(sys.argv[1],sys.argv[2],"occ",[("c-%d"%(i))])
		if resp.split(" ")[-1] == "True":
			continue
		else:
			print "test failed"
			return
	print "Test passed"
if __name__ == "__main__":
	main()
